<template>
  <div class="game">
    <h2>子组件</h2>
    <slot name='qwert' :games="games"></slot>
  </div>
</template>
<script setup lang='ts'>
import { ref, reactive } from "vue";
const games = reactive([
  { id: 1, name: "凄凄切切" },
  { id: 2, name: "呜呜呜呜" },
  { id: 3, name: "额鹅鹅鹅" },
  { id: 4, name: "柔柔弱弱" }
]);
</script>
<style scoped>
.game {
  width: 200px;
  height: 300px;
  background-color: skyblue;
  border-radius: 10px;
  box-shadow: 0 0 10px;
}
h2 {
  text-align: center;
  background-color: orange;
  font-size: 20px;
  font-weight: 800;
}
</style>